package com.yyf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class OrderConsumer {
    //监听order.direct.queue队列
    @RabbitListener(queues = "order.direct.queue")
    public void handleOrderMessage(String message) {
        System.out.println("消费者收到消息：" + message);

    }
}
